//
//  SSDKLog.m
//  SuperSDKTest
//
//  Created by wyht－ios－dev on 15/11/11.
//  Copyright © 2015年 WYHT. All rights reserved.
//

#import "SSDKPluginLogUtil.h"

static SSDKPluginLogUtil *instance = nil;

@implementation SSDKPluginLogUtil

+ (id)getInstance {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[self alloc] init];
    });
    return instance;
}

+ (void)Log:(NSString *)logStr {
    NSString *result=[[SSDKPluginLogUtil getInstance] logHeadStr]==nil?@"":[[[SSDKPluginLogUtil getInstance] logHeadStr] stringByAppendingString:@"           "];
    if ([[SSDKPluginLogUtil getInstance] debugMode] && logStr!=nil) {
        NSLog(@"%@", [result stringByAppendingString:logStr]);
    }
}

@end
